using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._General
{
    /// <summary>
    /// <para>Delete</para>
    /// <para>Permanently deletes data from disk. All types of geographic data supported by ArcGIS, as well as toolboxes and workspaces (folders and geodatabases), can be deleted. If the specified item is a workspace, all contained items are also deleted.</para>
    /// <para>从磁盘中永久删除数据。可以删除 ArcGIS 支持的所有类型的地理数据以及工具箱和工作空间（文件夹和地理数据库）。如果指定的项目是工作区，则还会删除所有包含的项目。</para>
    /// </summary>    
    [DisplayName("Delete")]
    public class Delete : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public Delete()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_data">
        /// <para>Input Data Element</para>
        /// <para>The input data to be deleted.</para>
        /// <para>要删除的输入数据。</para>
        /// </param>
        public Delete(List<object> _in_data)
        {
            this._in_data = _in_data;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Delete";

        public override string CallName => "management.Delete";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_data, _data_type, _out_results];

        /// <summary>
        /// <para>Input Data Element</para>
        /// <para>The input data to be deleted.</para>
        /// <para>要删除的输入数据。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Data Element")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _in_data { get; set; }


        /// <summary>
        /// <para>Data type</para>
        /// <para>The type of data on disk to be deleted. This is only necessary when the input data is in a geodatabase and naming conflicts exist, for example, if the geodatabase contains a feature dataset and a feature class with the same name. In this case, the data type is used to clarify which dataset to delete.</para>
        /// <para>磁盘上要删除的数据类型。仅当输入数据位于地理数据库中且存在命名冲突时（例如，地理数据库包含要素数据集和同名要素类时），才需要执行此操作。在本例中，数据类型用于阐明要删除的数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Data type")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _data_type { get; set; } = null;


        /// <summary>
        /// <para>Delete Succeeded</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Delete Succeeded")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_results { get; set; }


        public Delete SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}